Skip to main content

Mobile to Address API - v1

This document highlights details of the Mobile to Address API v1.

API Description

Objective

The Mobile to Address API - v1 retrieves a user's verified address and contact details using their mobile number. It enables identity verification, contact-ability checks, and enhances skip tracing efforts.

InputOutput
The user's mobile number and consentThe address information, associated email ID, and delivery details

API URL

https://ind-engine.thomas.hyperverge.co/v1/mobileToAddress

API Endpoint

mobileToAddress

Overview

The Mobile to Address API - v1 is RESTful and uses standard HTTP verbs and status codes. The requests are in JSON format and responses are in JSON format.

Authentication

You need a unique pair of application ID ( appId ) and application key (appKey) from HyperVerge to verify your identity for accessing theThe Mobile to Address API - v1.

ParameterMandatory or OptionalDescriptionAllowed Values
content-type MandatoryThis parameter defines the media type for the request payloadapplication/json
appId MandatoryThe application identifier shared by HyperVerge. You can find the details in the dashboard's credentials tab.This should be a unique value.
appKey MandatoryThe application key shared by HyperVerge. You can find the details in the dashboard's credentials tab.This should be a unique value.
transactionIdMandatoryA unique identifier for tracking a user journeyThis should be both unique and easily associated with the user's journey in your application(s)

Inputs

The following table provides the details of the parameters required for the The Mobile to Address API - v1's request body:

ParameterMandatory or OptionalDescription
mobileNoMandatory10 digit mobile number
consentMandatoryConsent flag indicating user permission (Y/N)

Request

The following code snippet demonstrates a standard curl request for the Mobile to Address API v1:

curl --location 'https://ind-engine.thomas.hyperverge.co/v1/mobileToAddress' \
--header 'Content-Type: application/json' \
--header 'appId: <Enter_the_HyperVerge_appId>' \
--header 'appKey: <Enter_the_HyperVerge_appKey>' \
--header 'transactionId: <Enter_the_HyperVerge_transactionID>' \
--data '{
"mobileNo":"<Enter_the_Mobile_Number>",
"consent":"<Enter_Y_or_N>"
}'

Success Response

The following code snippet demonstrates a success response from the Mobile to Address API v1:

{
"status": "success",
"statusCode": 200,
"result": {
"code": "1002",
"message": "Fetched address data.",
"addressData": [
{
"firstName": "<First_Name>",
"email": "<Email_Address>",
"isdCode": "+91",
"line1": "<Address_Line_1>",
"city": "<City_Name>",
"state": "<State_Name>",
"stateCode": "<State_Code>",
"country": "India",
"countryCode": "In",
"pincode": "<Pincode>",
"lastDeliveryDate": "<Last_Delivery_Date>"
}
],
"timestamp": <Timestamp>
},
"metadata": {
"requestId": "<Request_ID>",
"transactionId": "<Transaction_ID>"
}
}

Success Response Details

The following table outlines the details of the success response from the API:

ParameterTypeDescription
statusstringThe status of the API response
statusCodeintegerThe HTTP status code of the response
resultobjectThe main result object containing all response data
codestringThe internal code representing the operation result
messagestringThe message describing the success response
addressDataarrayThe list of address records linked to the mobile number
firstNamestringThe name or label associated with the address
emailstringThe email ID associated with the address
isdCodestringThe country ISD code for the contact number
line1stringThe full address line including house/building and locality
citystringThe city of the address
statestringThe state of the address
stateCodestringThe two-letter code for the state
countrystringThe country name
countryCodestringThe two-letter ISO country code
pincodestringThe postal code (ZIP or PIN code)
lastDeliveryDatestringThe last successful delivery date to this address
timestampnumberThe Unix timestamp of the API response in milliseconds
metadataobjectThe metadata object containing request tracking information
requestIdstringThe unique identifier for the request
transactionIdstringThe unique identifier for the transaction

Failure Response

The following is a failure response from the API:

{
"status": "failure",
"statusCode": 404,
"error": "No records found with given mobile number",
"metadata": {
"requestId": "<Request_ID>",
"transactionId": "<Transaction_ID>"
}
}

Error Responses

The following are some error responses from the API:

{
"status": "failure",
"statusCode": 400,
"error": "Invalid mobile number",
"metadata": {
"requestId": "<Request_ID>",
"transactionId": "<Transaction_ID>"
}
}

Failure and Error Response Details

A failure or error response from the module contains a failure status, with a relevant status code and error message.

The following table lists all error responses:


Status CodeError MessageDescription
400Invalid mobile numberThe mobile number provided is not in valid format
400Consent not providedThe consent is missing or invalid
401Missing/Invalid credentialsThe request is either missing the mandatory appId and appKey combination or has invalid values
404No records found with given mobile numberThe mobile number provided does not exist in the database
500Internal Server ErrorPlease check the request headers or contact the HyperVerge team for resolution
503External source downtimePlease contact the HyperVerge team for resolution
Was this helpful?
Ask AIBeta
Hi! How can I help?
Ask me anything about HyperVerge products, APIs, and SDKs.
Try asking: